//
// Created by Castle on 2025/10/27.
//

#include <iostream>
using namespace std;

int main() {
    int a;
    cin >> a;
    cout << 4 * a << "  " << a * a << endl;

    return 0;
}